package com.qiyu.common.utils;


import static com.qiyu.common.constants.MiniProgramConstants.*;

/**
 * @author linhao
 * @date 2019/7/19
 * @Version V1.0
 */
public class RedisKeyUtil {


    public static String buildToken(String token) {
        return String.format(TOKEN_PREFIX, token);
    }

    public static String buildVerifyCode(String phone) {
        return String.format(REDIS_VERIFY_CODE_KEY, phone);
    }

    public static String buildBitMap() {
        return REDIS_KEY_BIT_MAP;
    }

    public static String buildCartKey(Integer accountId){
        return "shop:cart:"+accountId;
    }


}
